package com.ruoyi.service;

import com.ruoyi.domain.AdvIncome;
import com.ruoyi.domain.Vo.AdvIncomeVo;
import com.ruoyi.domain.Vo.InComeDetailResponse;

import java.util.List;

/**
 * bal_flagService接口
 *
 * @author ruoyi
 * @date 2024-05-13
 */
public interface IAdvIncomeService
{
    /**
     * 查询bal_flag
     *
     * @param advIncomeId bal_flag主键
     * @return bal_flag
     */
    public AdvIncome selectAdvIncomeByAdvIncomeId(Long advIncomeId);

    /**
     * 查询bal_flag列表
     *
     * @param advIncome bal_flag
     * @return bal_flag集合
     */
    public List<AdvIncome> selectAdvIncomeList(AdvIncome advIncome);

    /**
     * 新增bal_flag
     *
     * @param advIncome bal_flag
     * @return 结果
     */
    public int insertAdvIncome(AdvIncome advIncome);

    /**
     * 修改bal_flag
     *
     * @param advIncome bal_flag
     * @return 结果
     */
    public int updateAdvIncome(AdvIncome advIncome);

    /**
     * 批量删除bal_flag
     *
     * @param advIncomeIds 需要删除的bal_flag主键集合
     * @return 结果
     */
    public int deleteAdvIncomeByAdvIncomeIds(Long[] advIncomeIds);

    /**
     * 删除bal_flag信息
     *
     * @param advIncomeId bal_flag主键
     * @return 结果
     */
    public int deleteAdvIncomeByAdvIncomeId(Long advIncomeId);

    boolean settleAccount(AdvIncomeVo advIncomeVo);

    String getIncome(Long advMembersId);

    List<InComeDetailResponse> getIncomeDetail(Long advMembersId);

    //批量审批
    int batchSelect(List<Long> advIncomeIds, String isAudit);

    List<AdvIncome> selectAdvIncomeByIds(List<Long> advIncomeIds);
}
